import request from "@/utils/request";

// 查询项目维护列表
export function getMaintenanceList(params) {
  return request({
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    url: "/mes/maintenance/getList",
    method: "get",
    params,
  });
}
// 删除项目维护
export function delMaintenance(ids) {
  return request({
    url: "/mes/maintenance/" + ids,
    method: "DELETE",
  });
}
// 修改项目维护
export function putMaintenance(data) {
  return request({
    url: "/mes/maintenance",
    method: "PUT",
    data,
  });
}
// 查询项目维护详细信息
export function getMaintenance(id) {
  return request({
    url: "/mes/maintenance/" + id,
    method: "get",
  });
}

// 新增项目维护
export function postMaintenance(data) {
  return request({
    url: "/mes/maintenance",
    method: "POST",
    data,
  });
}
